package com.lanchewuyou.user.driver.bean;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 *保险公司本地数据库帮助类
 */
public class CompanyOpenHelper extends SQLiteOpenHelper {

    public static final String CREATE_COMPANY="create table Company("
            +"id integer primary key autoincrement,"
            +"company_id text,"
            +"company_name text,"
            +"company_address text,"
            +"company_shortname text)";

    public CompanyOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_COMPANY);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
